package com.bolt.admin.security.shiro.token;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * Created by Administrator on 2018/4/8.
 */
public class JWTToken implements AuthenticationToken {

    private static final long serialVersionUID = 5369250527621928832L;

    private String accessToken;

    public JWTToken(String accessToken) {
        this.accessToken = accessToken;
    }

    @Override
    public Object getPrincipal() {
        return accessToken;
    }

    @Override
    public Object getCredentials() {
        return accessToken;
    }

    public String getAccessToken() {
        return accessToken;
    }
}